import React from 'react';
import Item, { IFormItemProps } from './Item'
import Input, { InputProps, TextAreaProps } from 'antd/lib/input';
// const validates = ['required', 'min']
interface IInputProps extends InputProps, IFormItemProps { }

interface ITextAreaProps extends TextAreaProps, IFormItemProps { }
class FormTextArea extends React.Component<ITextAreaProps> {
	render() {
		return (
			<Item {...this.props}
				render={() => <Input.TextArea {...this.props} />}
			/>
		)

	}
}
export default class FormInput extends React.Component<IInputProps> {

	render() {
		return (
			<Item {...this.props}
				render={() => <Input {...this.props} />}
			/>
		)

	}
	public static TextArea = FormTextArea
}

